//
//  CarConfigHeaferView.m
//  New_Runway
//
//  Created by mack on 2018/1/26.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "CarConfigHeaferView.h"

@implementation CarConfigHeaferView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self addAllViews];
        self.contentView.backgroundColor = backColor();
    }
    return self;
}


- (void)addAllViews
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, SCREEN_WIDTH(), 30)];
    self.label.textColor = [UIColor blackColor];
    self.label.text = @"基本配置";
    self.label.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.label];
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 30,SCREEN_WIDTH(), 0.5)];
    view.backgroundColor = lineColor();
    [self.contentView addSubview:view];
    kSelfWeak;
    self.rightImage = [[UIImageView alloc] init];
    [self.contentView addSubview:self.rightImage];
    [self.rightImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(weakSelf.contentView);
        make.right.equalTo(weakSelf.contentView).mas_offset(-15);
    }];
    
    UIView *line = [[UIView alloc] init];
    line.backgroundColor = mainColor();
    [self.contentView addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(weakSelf.contentView);
        make.width.mas_equalTo(3);
    }];
    
    
}
@end
